//添加/编辑
import {ResponseData} from "@/api/common/type";

export interface RoleAddOrUpdateForm {
    uuid? :string,
    remark: string,
    roleName: string,
    roleSort: number
}

//定义获取分页列表
export interface RolePageListReponseData extends ResponseData {
    result: {
        data: RoleList,
        page: number,
        items: number,
        pageSize: number,
        currentPage: number,
        pageCount: number
    }
}

//定义获取全部数据列表
export interface RoleAllListReponseData extends ResponseData {
    result: {
        data: RoleList
    }
}

export interface RoleList {
    roleList: RoleInfo[]
}

export interface RoleInfoReponseData extends ResponseData {
    result: {
        roleInfo: RoleInfo
    }
}

export interface RoleInfo {
    "roleName": string,
    "uuid": string,
    "roleKey": string,
    "roleSort": number,
    "status": string,
    "createBy": string,
    "createTime": string,
    "updateBy": string,
    "updateTime": string,
    "remark": string
}
